
.topCom {
  display: flex;
  justify-content: center;
  width: 100%; // 新增宽度限制
  padding: 0 20px; // 增加左右内边距
  background: red;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1200px; // 增加最大宽度限制
  width: 100%; // 新增宽度限制
  justify-content: space-between; // 新增空间分配
 
}


// 顶部导航样式
  .top-nav {
   
  z-index: 101;
  padding: 20px;
  gap: 15px;
   display: flex;
   justify-content: end;
  align-items: center;
  gap: 15px; // 保留单个gap定义
  padding: 20px 0; // 调整padding
  flex-shrink: 0; // 防止压缩
   
    gap: 15px;

    .vip-btn {
      width: 100px;
      height: 40px;
      border-radius: 5px;
      z-index: 1002;
      cursor: pointer;
      padding: 0 10px;
      background: url("https://gaoding-market.dancf.com/market-operations/market/side/7d9c529657004bb29363933053850b62/1744959084630.png?x-oss-process=image/format,webp")
        no-repeat center center;
      background-size: contain;
    }
    .login-btn {
      
      height: 40px;
      
      padding: 0 25px;
      z-index: 100;
    }
   
  }

  // 用户头像样式
  .avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;

    .user-avatar {
      width: 45px !important;
      height: 45px !important;
    }
  }

  /用户头像样式
.user-avatar {
  object-fit: cover; // 新增防止图片变形
}
// 头像组件
.avatar-wrapper {
  position: relative;
  cursor: pointer;
  z-index: 1001; // 确保在弹框上层
}

//用户组件
.user-popup {
  position: absolute;
  right: 10px;
  top: 40px;
  width: 320px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 16px;

  .popup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;

    .user-info {
      display: flex;
      justify-content: center;
      align-items: center;
      .name {
        font-weight: 500;
        font-size: 16px;
      }
      .user-id {
        color: #7f8792;
        font-size: 12px;
      }
    }

    .user-tag {
      background: #f1f2f4;
      color: #7f8792;
      padding: 2px 4px;
      border-radius: 4px;
      font-size: 12px;
    }
  }

  .storage-info {
    display: flex;
    justify-content: space-between;
    margin: 16px 0;
    padding: 12px 0;

    .storage-item {
      text-align: center;
      .value {
        font-size: 18px;
        font-weight: 500;
      }
      .label {
        color: #666;
        font-size: 12px;
      }
    }
  }

  .vip-section {
    width: 320px;
    padding: 12px 0;
    margin-left: -15px;
    background: #e1e8f6;
    border-radius: 10px;

    .membership-status {
      padding: 12px 0;
    }

    .vip-card {
      background: #f6f7f9;
      border-radius: 4px;
      padding: 12px;
      margin: 8px 0;
      display: flex;
      justify-content: space-around;
      align-items: center;
      position: relative;
      h4 {
        margin: 0;
        font-size: 14px;
      }
      p {
        margin: 4px 0 0;
        color: #666;
        font-size: 12px;
      }
      .price {
        width: 60px;
        position: absolute;
        text-align: center;
        right: 18px;
        top: 10px;
        z-index: 100;
        color: #fff;
        background: #f54e4e;
      }
      .upgrade-btn {
        margin-top: 12px;
        color: #825720;
        background: #ffeba5;
      }
    }
  }

  .settings-section {
    padding-top: 12px;
    .setting-item {
      padding: 4px 0;
      cursor: pointer;
      border-radius: 10px;
      &:hover {
        background: #edf1f3;
      }
      &.logout {
        color: #ff4d4f;
        border-top: 1px solid #eee;
        margin-top: 8px;
        padding-top: 12px;
      }
    }
  }
}
//vip组件
.vip-popup {
  position: absolute;
  
  top: 70px;
  width: 800px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  padding: 24px;

  .popup-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    .vip-tier {
      padding: 12px;

      border-radius: 8px;
      &.vip1 {
        background: #e0f5ff;
      }
      &.vip2 {
        background: #f3e2ff;
      }
      &.vip3 {
        background: #fff2d4;
      }

      h3 {
        margin: 0 0 12px;
        font-size: 16px;
        color: #333;
      }

      ul {
        margin: 0;
        padding-left: 20px;
        list-style: disc;
        width: 200px;
        height: 100px;
        background: #fff;
        border-radius: 10px;
        li {
          font-size: 12px;
          color: #666;
          line-height: 1.6;
          margin-bottom: 8px;
        }
      }

      .price {
        margin-top: 12px;
        color: #ff4d4f;
        font-weight: 500;
        font-size: 14px;
      }
      &.btn1 {
        background: #c3e6ff;
        color: #719ae5;
      }
      &.btn2 {
        background: #dab5ff;
        color: #67309e;
      }
      &.btn3 {
        background: #ffd173;
        color: #72440f;
      }
    }

    .enterprise-service {
      grid-column: span 3;
      margin-top: 10px;
      padding-top: 10px;
      width: 750px;
      height: 80px;
      border-radius: 10px;
      background: #eff8ff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .consult-btn {
        margin-right: 10px;
      }
      .service-left {
        margin-left: 10px;
      }
      a {
        color: #000;
        text-decoration: none;
        font-weight: 600;
        font-size: 18px;
        &:hover {
          text-decoration: underline;
        }
      }

      p {
        color: #666;
        font-size: 12px;
        margin: 8px 0 0;
      }
    }
    .other-method {
       grid-column: span 3;
      width: 750px;
      height: 40px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #666;
      font-size: 12px;

      span {
        text-align: center;

        font-size: 12px;
        padding: 0px 5px;

        img {
          width: 30px;
          height: 30px;
          padding-top: 12px;
        }
      }
      span:first-child {
        border-right: 1px solid #ccc;
      }
    }
  }
}

// 铃铛图标样式
.bell-wrapper {
  position: relative;
  cursor: pointer;
  z-index: 1001;
  .bell-icon {
    font-size: 20px;
    color: #666;
    transition: color 0.3s;

    &:hover {
      color: #2254f4;
    }
  }
}

// 消息弹窗
.message-popup {
  position: absolute;
  right: -10px;
  top: 35px;
  width: 460px;
  height: 750px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1002;

  .popup-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left{
      display: flex;
      justify-content: center;
      align-items: center;
    }
    h3 {
     
      font-size: 16px;
    }
    
    

      .ant-checkbox-wrapper {
        font-size: 12px;
      
    }
  }

  .message-list {
    padding: 16px;
    min-height: 120px;

    display: flex;
    justify-content: center;
    align-items: center;
    .empty {
      color: #999;
      text-align: center;
      padding: 24px 0;
      margin-top: 120px;
    }
  }

  .popup-footer {
    border-top: 1px solid #eee;
    padding: 12px 16px;
    width: 100%;

    position: absolute;
    bottom: 0;

    .ant-btn {
      height: auto;
      padding: 0;
      color: #a2a9b0;
      margin-left: -42%;
    }
  }
}
